package cn.ticket.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.ticket.model.Staff;
import cn.ticket.model.Workticketorder;

public interface WorkTicketOrderService {
    int deleteByPrimaryKey(Integer id);

    int insert(Workticketorder record);

    int insertSelective(Workticketorder record);

    Workticketorder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Workticketorder record);

    int updateByPrimaryKey(Workticketorder record);
    
    List<Map<String, Object>> getAuditingTicketInfoByDepartmentId(Integer departmentId);
    
    List<Map<String, Object>> getAuditingTicketInfo();
    
    List<Map<String, Object>> getAuditedTicketInfoByStaffId(Integer auditStaffId);
    
    List<Map<String, Object>> getValidateTicketInfoByStaffId(Integer staffId);
    
    List<Map<String, Object>> getInvalidateTicketInfoByStaffId(Integer staffId);
    
    List<Map<String, Object>> getAuditedTicketInfoByAuditorId(Integer auditorId);
    
    List<Map<String, Object>> getInfoByDepartureDate(Date departureDate);
    
    List<Map<String, Object>> getInfoByDepartureDateRange(Date startDate,Date endDate);
    
    List<Map<String, Object>>  getInfoByBusId(Integer busId);
    
    Boolean AuditTicket(Workticketorder workticketorder,Staff auditStaff);
}
